><

Using wildcards in a search



When you select Regular Expression in the Find dialog box, you activate wildcard searching. (Regular Expression is a proven technology used in many word-processing applications.) GoLive makes wildcard searching easier by allowing you to use editable wildcard patterns in the search history pop-up menu. For more information, see Setting Find preferences.

Use these guidelines when wildcard searching:

  • Characters that are used to specify wildcard options, such as "?", "\", "[", and "]", must be preceded by a backslash. For example, "\?" finds any question mark.
  • The caret serves as a wildcard character only when it precedes a range of characters, as in "[^A-Z]".
  • The dash does not act as a wildcard character if it precedes a range of characters, as in "[-ABC]" or "[^-ABC]". At any other location, it acts as a wildcard character indicating a "from...to" relationship.

  • The following table lists available wildcard search options:

    Wildcard Option
    Action
    Examples
    Wildcards for Single Characters
    .
    Finds any single character.

    []
    Finds any one of the characters in square brackets.
    "[0123456789]" finds any digit.
    "[a-zA-Z]" finds any alphabetical character.
    Finds any one character in a range enclosed in square
    brackets.
    "[0-9]" finds any digit.
    [^]
    Finds any character other than the characters following the caret symbol (^) in the brackets.
    "[^ab]" finds any character, except for "a" and "b"
    \d (or [0-9])
    Finds any digit.

    \D (or [^0-9])
    Finds any character other than a digit.

    \w (or [a-zA-Z])
    Finds any character.

    [a-zA-Z]+
    Finds any word.

    \W (or [^a-zA-Z])
    Finds any character other than alphabetical characters.

    \s (or [SPACE+\t])
    Finds any white space (SPACE = space key).

    \S
    Finds any character other than a white space.

    \r
    Finds any line break (in HTML source code).

    \t
    Finds any tab character, such as indentations in HTML source code.

    \x00 - \xff
    Finds any character, as identified by its ASCII value.
    "\X43" finds "C"
    Quantifiers
    ?
    The question mark makes the preceding character or string (enclosed in parentheses) optional.
    "(Adobe )?GoLive" finds "Adobe GoLive" and "GoLive".
    +
    The plus sign finds one or more occurrences of the preceding character or search string in a row.
    "ba+" finds "ba", "baa", "baaa", etc.
    *
    The star is equivalent to a "?" and a "+", and can result in a "not found" message if no occurrences are found. The character preceding the "*" is optional.
    "ba*" finds "b", "ba", "baa", etc.
    Other Search String Modifiers
    |
    The vertical bar serves as a separator for alternative search strings.
    "Adobe|GoLive|4.0" finds "Adobe", "GoLive", and "4.0".
    ()
    Parentheses enclose a search string that serves as a definition for quantifiers.
    See the description of "?" above.
    ^
    In source mode, the caret finds the start of a line. In Layout view, it finds the beginning of a paragraph.

    $
    In source mode, the dollar sign finds the end of a line. In
    Layout view, it finds the end of a paragraph.

    Search String
    Finds
    Adobe|GoLive
    "Adobe" or "GoLive"
    m(i|a)ll
    "mill" or "mall"
    Adobe( GoLive)?
    "Adobe GoLive" if the latter exists, else "Adobe"
    </?HTML>
    "<HTML>" and "</HTML>"
    Ye+s
    The word "Yes", containing any number of successive "e" characters, such as "Yes", "Yees", "Yeees", etc.
    Michael J[a-z]*
    Any string beginning with "Michael J", followed by any number of lowercase letters, such as "Michael Jones", "Michael Jamrosy", and "Michael Jordan"
    <H[1-6]>
    HTML headers H1 through H6, including "H1", "H2", "H3", etc.
    <[a-zA-Z][a-zA-Z0-9]*>
    Any start tag that has no attributes, such as "<P>", "<b>", "<H2>", "<ImaGe>"
    <[a-zA-Z][a-zA-Z0-9]*[^>]*>
    Any start tag, including those with attributes, such as "<image width=20>"


    Searching > Searching within a document and within a site > Using wildcards in a search